package com.xframe.domain;

import com.xframe.domain.role.IUserCredentials;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.extern.log4j.Log4j2;

import java.util.Date;
import java.util.List;


/**
 * @Description: 用户凭证
 * @ClassName: UserCredentials
 * @Author: xufeng
 * @CreateTime: 2023/4/3 16:59
 **/
@Log4j2
@Data
@Accessors(chain=true)
public class EmpUserCredentials implements IUserCredentials {


    private Long loginUserId;
    private String loginUsername;
    private String loginToken;
    private Long loginEmployeeId;
    private String loginEmployeeName;
    private String loginPhoneNumber;
    private Long loginRoleId;
    private String loginRoleName;
    private Date loginTime;
    private Date lastLoginTime;
    private List<String> loginRoleDirectoryMarkList;

    @Override
    public String getName() {
        return loginUsername;
    }

    @Override
    public Long getUserId() {
        return loginUserId;
    }

    @Override
    public String getLanguage() {
        return "cn";
    }

    @Override
    public String getToken() {
        return loginToken;
    }

    @Override
    public String getOrgType() {
        return "1000";
    }

    @Override
    public String getOrgCode() {
        return "1000";
    }

    @Override
    public Long getOrgId() {
        return 1L;
    }

    @Override
    public String getNickname() {
        return loginUsername;
    }
}
